#include <stdio.h>
void ex(int n) //转换16进制
{
    int temp1, temp2;
    temp1 = n / 16;
    temp2 = n % 16;
    putchar(temp1 < 10 ? temp1 + '0' : (temp1 - 10 + 'a'));
    putchar(temp2 < 10 ? temp2 + '0' : (temp2 - 10 + 'a'));
}
int main()
{
    unsigned char qu, we;
    qu = getchar();
    we = getchar();
    ex(qu);
    ex(we);
    return 0;
}
